<link rel="stylesheet" type="text/css" href="/public/home/css/editor-style.css" />
<link rel="stylesheet" type="text/css" href="/public/home/tagsinput/bootstrap-tagsinput.css" />

<script src="/public/home/tagsinput/bootstrap-tagsinput.js"></script>
<script src="/public/home/tagsinput/bootstrap-tagsinput-angular.min.js"></script>

<!-- Redactor is here -->
<link rel="stylesheet" href="/public/home/redactor/redactor.css" />
<style type="text/css">
    .fileUpload{
        text-align: left; margin-left: 219px; margin-top: -29px;
    }
    .fileUpload img{
        width: 22px; cursor: pointer; cursor: hand;
    }
    .upload{
        z-index: 999; clear: both; width: 22px; height: 22px; float: left
    }

</style>

<div class="page-content">
<div class="page-content-a">


<div class="page-content-b">

<!-- conteiner1 -->
<div class="table-s">

    <!-- \\\center col\\\ -->
        <div class="table-s-left"  style="margin: 0">
            <div class="table-s-left-b">
                <div class="padding">
                    <div class="post-content">
                        <div class="post-lbl">UPLOAD NEW ITEM</div>

                        <div class="leave-comment" style="margin-top: 30px;">
                            <label>Name<span>*</span></label>
                            <input type="text" value="" id="name" placeholder="Product's name">

                            <div style="margin-left: 300px; margin-top: -59px;">
                                <label>Category<span>*</span></label>
                                <select id="cid" style=" width: 248px; height: 36px; padding-left: 10px; padding-right: 10px; font-size: 13px;font-family: 'Open Sans';border: 1px solid #e3e3e3;background: transparent;-webkit-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;">
                                    <?php
                                    foreach ($cats as $cat) {
                                        echo '<option value="'.$cat->id.'">'.$cat->name.'</option>';
                                    }

                                    ?>
                                </select>
                            </div>

                            <div style="margin-top: -59px; margin-left: 600px">
                                <label>Price<span>*</span></label>
                                <input type="Number" value="" id="price" placeholder="Product's price" style=" width: 248px; height: 36px; padding-left: 10px; padding-right: 10px; font-size: 13px;font-family: 'Open Sans';border: 1px solid #e3e3e3;background: transparent;-webkit-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;">
                            </div>


                            <form id="previewImg">
                                <div class="_upload">
                                    <input type="hidden" hidden="hidden" name="id">
                                    <label style="margin-top: 15px">Thumbnail<span>*</span></label>
                                    <input class="_upload" data-id="" type="text" placeholder="Choose File" disabled="disabled" />
                                    <div class="fileUpload">
                                        <img src="/public/home/img/camera.png" onclick="selectImg(this)">
                                        <input name="file" type="file" class="upload" hidden="hidden" style="" accept="image/*"/>
                                    </div>

                                    <img class="_upload" hidden="hidden" style="width: 247px; margin-top: 20px;">
                                </div>
                            </form>



                            <div style="margin-top: 20px;">
                                <label>Tags</label>
                                <input data-role="tagsinput" name="tags" value="" style="height: 34px; width: 100%" id="tags">
                            </div>



                            <label style="margin-top: 20px;">Content<span>*</span></label>
                            <textarea id="redactor_content" name="content"> </textarea>


                            <label style="margin-top: 15px">Photos<span>*</span></label>
                            <div class="photos">
                                <div class="_upload" style="margin-bottom: 15px;">
                                    <form class="_imageForm">
                                        <input class="_upload" data-id="" type="text" placeholder="Choose File" disabled="disabled" />
                                        <input class="btn" style=" height: 20px; margin-left: 10px; background: #2f3341; opacity: 0.5; width: 20px;" value="+" onclick="addMore(this)" type="button"/>
                                        <div class="fileUpload">
                                            <img src="/public/home/img/camera.png" onclick="selectImg(this)">
                                            <input name="file" type="file" class="upload" hidden="hidden" style="" accept="image/*"/>
                                        </div>

                                        <img class="_upload" hidden="hidden" style="width: 247px; margin-top: 20px;">
                                    </form>
                                </div>
                            </div>

                            <label style="margin-top: 20px">Product file<span>*</span></label>
                            <div class="_upload" style="margin-bottom: 15px;">
                                <form class="_fileForm" method="post">
                                    <input class="_upload" data-id="" type="text" placeholder="Choose File" disabled="disabled" />
                                    <div class="fileUpload">
                                        <img src="/public/home/img/add_file.png" onclick="selectProductFile()">
                                        <input name="file" type="file" hidden="hidden" style="" accept="application/zip" id="pfile"/>
                                    </div>
                                </form>
                            </div>

                            <input type="button" class="btn" style="margin-top: 20px;" value="Save" id="savebtn"/>


                        </div>
                        <!-- \\ leave comment \\ -->

                    </div>
                </div>
            </div>
            <br class="clear">
        </div>

</div>
<!-- /conteiner1 -->
<!-- \\\right col\\\ -->
<!-- ///right col/// -->
<div class="clear"></div>

</div>
</div>
</div>

<script type="text/javascript">
    var product_id = null;

    $(document).ready(
        function()
        {
            eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('H 5t,4W;F(Z 5x==="1h"){H 5x={}}H N={11:"bC",22:"3p aa",3k:"3p a2",1m:"5Q",2p:"am",93:"3p 2p",4O:"bF",37:"bG",8A:"bA",8E:"bz",5a:"a4",8G:"5m 1",8P:"5m 2",8Q:"5m 3",91:"5m 4",2K:"bt",2z:"bJ",3j:"bY ae",2M:"c0 ae",3E:"bL aG",3C:"c2 aG",3t:"b6",3y:"bg",3Q:"bf",4v:"3p",5R:"b8",9E:"4r",6b:"3p 5Q",67:"4p 5U bb",62:"4p 5U be",63:"4p 5W aQ",65:"4p 5W 9M",5O:"4r 5W",5N:"4r 5U",5J:"4r 5Q",8J:"df",8L:"dk",5G:"4p 9Q",5E:"4r 9Q",U:"d5",9B:"dm",21:"dI",1x:"aQ",32:"9M",9r:"a2 dq am",18:"b0",4u:"5Z",do:"5T",8M:"aa du a4",2d:"3p dy",3S:"7M",cm:"ck",5S:"cq",82:"ch 5S",8y:"c7 2d c4",5D:"9T 18 9U ao 1x",5H:"c5 18",5L:"9T 18 9U ao 32",5K:"cd 18",5i:"3p cK cQ",3c:"cD",5P:"cC",9u:"cZ 2p cE 2r cF",3U:"cB",56:"cA"};(G(b){3G.fn.1Y=G(c){K E.1q(G(){H e=b(E);H d=e.1v("1Y");F(!d){e.1v("1Y",(d=2r a(E,c)))}})};H a=G(d,c){E.$el=b(d);F(Z c!=="1h"&&Z c.4y!=="1h"&&c.4y!=="en"&&Z 5x[c.4y]!=="1h"){N=5x[c.4y]}E.J=b.3q({1y:I,12:I,4y:"en",6H:"cx",2f:I,6Q:I,6S:I,6l:I,61:I,8U:X,1k:I,4I:I,4A:X,4f:I,2H:I,9C:0,9y:I,5v:X,1I:X,96:X,1J:I,8B:I,8j:X,6g:X,7o:"7v://",5h:I,6z:I,8p:60,4n:I,49:I,42:I,5Y:I,5b:I,47:I,7x:I,7q:I,2i:I,2E:X,4a:X,9j:["1i","1f","3A","2Z","2v","cy","cz","2B","6C","6A","cG","cH","cP","cR","cS","cO","cN","cJ","7Z","cI","cM","5a","1U","M","1e","a","br","p","b","i","8q","8f","u","2y","22","5v","cu","2X","1y","1T","2k","41","2e","ct","cc","cb","2U","3b","1t","9b","dl","dt","dd","ce","cf","ca","1u","5a","6D","c9","8h","em","1m","1S","1j","4t","3d","23","9m","4D","4C","4x","4w","6s","6B"],4o:I,8T:{},8S:[],3a:["11","|","37","|","2K","2z","3c","|","3E","3C","3t","3y","|","3k","22","2d","1m","2p","|","3j","2M","|","56","|","5i"],8Z:["37","|","2K","2z","3c","|","3E","3C","3t","3y","|","3j","2M"],8R:["p","2e","1u","4D","4C","4x","4w"],5g:["3c","2z","2K","3U","3E","3C"],9w:{b:"2K",8h:"2K",i:"2z",em:"2z",8q:"3c",8f:"3c",2U:"3E",3b:"3C",u:"3U"},6w:["#c6","#c8","#cg","#cp","#cr","#cs","#co","#cn","#cj","#ci","#cl","#cT","#9i","#cU","#dw","#dx","#dz","#dv","#dp","#dr","#ds","#dA","#dB","#dJ","#dK","#dL","#dM","#dH","#dD","#dC","#7Y","#dE","#dF","#dG","#dn","#d3","#d2","#d4","#d6","#d1","#d0","#7Y","#cW","#cV","#cX","#cY","#c3","#dh","#di","#dj","#dg","#da","#d9","#db","#dN","#9i","#bT","#bd","#bc","#b9","#ba","#bm","#bn","#b7","#bl","#bk"],5q:"<p><br /></p>",3z:I,3N:X,a6:2C()+\'<M R="3X"><1i R="bh" 4d="5r" 3n="" 5A="5C/1i-1v"><1e>bi (bj)</1e><1f 1r="18" R="7w" Y="2G" /><M 1G="43-1A: bo;"><1f 1r="2d" R="3x" 1E="2d" /></M></1i><br></M>\',9Y:2C()+\'<M R="3X"><1e>\'+N.U+\'</1e><1f R="6a" Y="2G" /><1e>\'+N.2p+\'</1e><1f R="39" Y="2G" /><1e>\'+N.9B+\'</1e><2Z R="69"><2v 28="21">\'+N.21+\'</2v><2v 28="1x">\'+N.1x+\'</2v><2v 28="32">\'+N.32+\'</2v></2Z></M><M R="4q"><a 1b="1N:1L(17);" R="9H" Y="2q">\'+N.9E+\'</a>&1Q;&1Q;&1Q;<a 1b="1N:1L(17);" Y="2q 3T">\'+N.3Q+\'</a><1f 1r="3A" 1E="5R" Y="2q" R="9R" 28="\'+N.5R+\'" /></M>\',aC:2C()+\'<M R="3X"><M R="2V"><a 1b="1N:1L(17);" Y="3m">\'+N.3S+\'</a><a 1b="1N:1L(17);">\'+N.5S+\'</a><a 1b="1N:1L(17);">\'+N.2p+\'</a></M><1i R="bR" 4d="5r" 3n="" 5A="5C/1i-1v"><M R="9t" Y="2t"><1f 1r="2d" R="3x" 1E="2d" /></M><M R="6y" Y="2t" 1G="2Q: 21;"><M R="5V"></M></M></1i><M R="5X" Y="2t" 1G="2Q: 21;"><1e>\'+N.9r+\'</1e><1f 1r="18" 1E="39" R="39" Y="2G"  /></M></M><M R="4q"><a 1b="1N:1L(17);" Y="2q 3T">\'+N.3Q+\'</a><1f 1r="3A" 1E="3S" Y="2q" R="9p" 28="\'+N.4v+\'" /></M>\',aM:2C()+\'<M R="3X"><1i R="bS" 4d="5r" 3n=""><M R="2V"><a 1b="1N:1L(17);" Y="3m">5T</a><a 1b="1N:1L(17);">5Z</a><a 1b="1N:1L(17);">\'+N.5P+\'</a></M><1f 1r="7t" R="4b" 28="1" /><M Y="2t" R="9t"><1e>5T</1e><1f 1r="18" R="54" Y="2G"  /><1e>\'+N.18+\'</1e><1f 1r="18" Y="2G 4P" R="9N" /><1e><1f 1r="bP" R="7l"> \'+N.9u+\'</1e></M><M Y="2t" R="6y" 1G="2Q: 21;"><1e>5Z</1e><1f 1r="18" R="7C" Y="2G" /><1e>\'+N.18+\'</1e><1f 1r="18" Y="2G 4P" R="a8" /></M><M Y="2t" R="5X" 1G="2Q: 21;"><1e>\'+N.5P+\'</1e><1f 1r="18" Y="2G" R="7k"  /><1e>\'+N.18+\'</1e><1f 1r="18" Y="2G 4P" R="aR" /></M></1i></M><M R="4q"><a 1b="1N:1L(17);" Y="2q 3T">\'+N.3Q+\'</a><1f 1r="3A" Y="2q" R="aO" 28="\'+N.4v+\'" /></M>\',aK:2C()+\'<M R="3X"><1e>\'+N.8J+\'</1e><1f 1r="18" 2m="5" 28="2" R="5I" /><1e>\'+N.8L+\'</1e><1f 1r="18" 2m="5" 28="3" R="aL" /></M><M R="4q"><a 1b="1N:1L(17);" Y="2q 3T">\'+N.3Q+\'</a><1f 1r="3A" 1E="3S" Y="2q" R="b1" 28="\'+N.4v+\'" /></M>\',al:2C()+\'<M R="3X"><1i R="bp"><1e>\'+N.8M+\'</1e><2B R="68" 1G="25: 99%; 1B: bU;"></2B></1i></M><M R="4q"><a 1b="1N:1L(17);" Y="2q 3T">\'+N.3Q+\'</a><1f 1r="3A" Y="2q" R="af" 28="\'+N.4v+\'" /></M>\',1a:{11:{U:N.11,1l:"86"},37:{U:N.37,1l:"1p",2g:{p:{U:N.8A,1c:"2n"},2e:{U:N.8E,1c:"2n",2w:"bV"},1u:{U:N.5a,1c:"2n",2w:"bW"},4D:{U:N.8G,1c:"2n",2w:"bX"},4C:{U:N.8P,1c:"2n",2w:"bK"},4x:{U:N.8Q,1c:"2n",2w:"bw"},4w:{U:N.91,1c:"2n",2w:"bx"}}},2K:{U:N.2K,1c:"2K"},2z:{U:N.2z,1c:"2z"},3c:{U:N.3c,1c:"by"},3U:{U:N.3U,1c:"3U"},3E:{U:"&bv; "+N.3E,1c:"95"},3C:{U:"1. "+N.3C,1c:"94"},3t:{U:"< "+N.3t,1c:"3t"},3y:{U:"> "+N.3y,1c:"3y"},3k:{U:N.3k,1l:"aw"},22:{U:N.22,1l:"ad"},2d:{U:N.2d,1l:"aH"},1m:{U:N.1m,1l:"1p",2g:{6b:{U:N.6b,1l:"ax"},bu:{1E:"5n"},67:{U:N.67,1l:"9X"},62:{U:N.62,1l:"9I"},63:{U:N.63,1l:"aj"},65:{U:N.65,1l:"ab"},bq:{1E:"5n"},5G:{U:N.5G,1l:"9Z"},5E:{U:N.5E,1l:"5F"},bs:{1E:"5n"},5O:{U:N.5O,1l:"at"},5N:{U:N.5N,1l:"aX"},5J:{U:N.5J,1l:"a0"}}},2p:{U:N.2p,1l:"1p",2g:{2p:{U:N.93,1l:"ar"},4O:{U:N.4O,1c:"4O"}}},3j:{U:N.3j,1l:"1p"},2M:{U:N.2M,1l:"1p"},56:{U:N.56,1l:"1p",2g:{71:{U:N.5D,1c:"6Z"},7a:{U:N.5H,1c:"4V"},78:{U:N.5L,1c:"4T"},4F:{U:N.5K,1c:"4R"}}},71:{1c:"6Z",U:N.5D},7a:{1c:"4V",U:N.5H},78:{1c:"4T",U:N.5L},4F:{1c:"4R",U:N.5K},5i:{1c:"6o",U:N.5i}}},c,E.$el.1v());E.4G=[];E.45()};a.81={45:G(){E.1B=E.$el.12("1B");E.25=E.$el.12("25");4W=E.V=V;5t=E.1V=1V;F(E.J.96===I&&E.2R()){E.6I(X);K I}F(E.J.1y){E.J.4A=I}F(E.J.1J){E.J.3a=E.J.8Z}L{F(E.J.1a!==I){F(E.J.5v===I){H d=E.J.3a.3e("11");H e=E.J.3a[d+1];E.J.3a.8Y(d,1);F(Z e!=="1h"&&e==="|"){E.J.3a.8Y(d,1)}}b.3q(E.J.1a,E.J.8T);b.1q(E.J.8S,b.Q(G(f,g){E.J.3a.6v(g)},E))}}F(E.J.1a!==I){b.1q(E.J.1a.37.2g,b.Q(G(f,g){F(b.5j(f,E.J.8R)=="-1"){98 E.J.1a.37.2g[f]}},E))}G c(){E.8I();E.8n();F(Z E.J.61==="1T"){b.1q(E.J.61,b.Q(G(j,k){F(Z 6P[k]!=="1h"){b.3q(E,6P[k]);F(Z 6P[k].45!=="1h"){E.45()}}},E))}F(E.J.5g!==I&&E.J.1a!==I){H g=b.Q(G(){E.9v()},E);E.$T.1d(g).2O(g)}H i=I;F(E.1n("3F")&&48.3Z.3e("92")===-1){H f=E.1n("5l").7G(".");F(f[0]<bH){i=X}}F(E.2R(X)===I&&i===I){E.$T.44("bI",b.Q(G(j){F(E.J.8U===I){K X}E.6O=X;E.9A();F(E.J.4A===X){E.5u=E.V.1X.3O}L{E.5u=E.$T.3O()}H k=E.6h();3i(b.Q(G(){H l=E.6h();E.$T.19(k);E.2S();H m=E.aq(l);E.8m(m);E.6O=I},E),1)},E))}E.2O();E.6R();F(E.J.5h!==I){E.8r()}3i(b.Q(G(){E.2E();E.5e()},E),1);F(E.1n("33")){E.$T.1d(b.Q(G(){E.2I()},E));7e{E.V.1O("bE",I,I);E.V.1O("bB",I,I)}6n(h){}}F(E.J.1k){3i(b.Q(G(){E.$T.1k()},E),1)}F(E.J.2H){E.70();b(V).bD(b.Q(E.70,E))}F(Z E.J.2f==="G"){E.J.2f(E)}F(E.J.1a!==I){E.$1a.1w("a").16("4I","-1")}}E.6I(I,c)},1I:G(d,c){d.31();E.1O(c,I)},2O:G(){E.$T.2O(b.Q(G(d){H c=d.5p||d.8W;F(E.1n("33")&&!E.6O){E.2I()}F(Z E.J.6Q==="G"){E.J.6Q(E,d)}F(c===8||c===46){E.2E();K E.9n(d)}F(c===13&&!d.4z&&!d.8X&&!d.8V){F(E.1n("3F")){E.9h(d)}F(E.J.8j){E.$T.9s()}}E.1s()},E))},6R:G(){E.$T.6R(b.Q(G(j){H d=j.5p||j.8W;H f=E.2L();H i=E.3o();H h=I;H g=j.8X||j.8V;F((f||i)&&(b(f).1g(0).1z==="5f"||b(i).1g(0).1z==="5f")){h=X}F(Z E.J.6S==="G"){E.J.6S(E,j)}F(g&&E.J.1I){F(d===90){F(E.J.3z!==I){j.31();E.9q()}L{F(j.4z){E.1I(j,"fF")}L{E.1I(j,"fC")}}}L{F(d===77){E.1I(j,"fE")}L{F(d===66){E.1I(j,"2K")}L{F(d===73){E.1I(j,"2z")}L{F(d===74){E.1I(j,"95")}L{F(d===75){E.1I(j,"94")}L{F(d===76){E.1I(j,"fl")}L{F(d===72){E.1I(j,"fx")}}}}}}}}}F(!g&&d!==90){E.J.3z=I}F(h===X&&d===13){j.31();H c=b(i).1W().18();E.3W(E.V.6M("\\r\\n"));F(c.3Y(/\\s$/)==-1){E.3W(E.V.6M("\\r\\n"))}E.1s();K I}F(E.J.1I&&!j.4z&&d===9){F(h===I){E.1I(j,"3y")}L{j.31();E.3W(E.V.6M("\\t"));E.1s();K I}}L{F(E.J.1I&&j.4z&&d===9){E.1I(j,"3t")}}F(E.1n("3F")&&48.3Z.3e("92")===-1){K E.8z(j,d)}},E))},6I:G(e,i){F(e!==X){E.$24=b(\'<M Y="gk"></M>\');F(E.J.1J){E.1J=b(\'<M Y="6T" 1G="2Q: 21;"></M>\')}E.$1M=17;G h(){E.$T=E.$1M.8F().1w("1X").16("6L",X).16("8D",E.J.6H);4W=E.V=E.$T[0].gn;5t=E.1V=E.V.gj||1V;F(E.J.12!==I){E.$1M.8F().1w("ge").19(\'<2p 4m="gf" 1b="\'+E.J.12+\'" />\')}E.$T.11(f);F(i){i.4S(E);i=17}}E.4J=X;F(E.$el.1g(0).1z==="8H"){F(E.J.1y){H g=E;E.$1M=b(\'<1y 1G="25: 4B%;" gp="0"></1y>\').aJ(G(){h.4S(g)})}L{E.$1M=E.$T=b("<M></M>")}H d=E.$el.1g(0).2w.7G(/\\s+/);b.1q(d,b.Q(G(j,k){E.$1M.2a("gw"+k)},E))}L{E.4J=I;E.$1M=E.$T=E.$el;E.$el=b(\'<2B 1E="\'+E.$T.16("R")+\'"></2B>\').12("1B",E.1B)}F(E.$T){E.$T.2a("4c").16("6L",X).16("8D",E.J.6H)}F(E.J.4I!==I){E.$1M.16("4I",E.J.4I)}F(E.J.4f!==I){E.$1M.12("gs-1B",E.J.4f+"1Z")}F(E.J.8B===X){E.$1M.2a("8K")}F(E.J.4A===I){E.$1M.12("1B",E.1B)}E.$el.1P();H f="";F(E.4J){f=E.$el.15();f=E.6f(f);E.$24.8C(E.$el).19(E.$1M).19(E.$el)}L{f=E.$T.11();f=E.6f(f);E.$24.8C(E.$1M).19(E.$el).19(E.$T)}f=E.9o(f);F(E.$T){E.$T.11(f)}F(E.4J===I){E.1s()}}L{F(E.$el.1g(0).1z!=="8H"){H f=E.$el.15();H c=b(\'<2B 1E="\'+E.$T.16("R")+\'"></2B>\').12("1B",E.1B).15(f);E.$el.1P();E.$el.2h(c)}}F(i&&E.$T){i.4S(E)}},8I:G(){F(E.J.1J===I){K I}E.1J.1P();E.$T.44("8O",b.Q(G(c){E.8N(c)},E));E.$T.44("97",b.Q(G(){E.1J.1P()},E))},8N:G(g){b(".6T").1P();H c=E.1J.9D();H f=g.gd;F(b(E.V).25()<(f+c)){f=f-c}H d=g.g0+b(V).3O()+14;F(E.J.1y===X){d=d+E.$24.2J().1A;f=f+E.$24.2J().1x}E.1J.12({1x:f+"1Z",1A:d+"1Z"}).1p()},1s:G(){E.$el.15(E.$T.11())},5d:G(c){c=E.4l(c);E.$T.11(c).1k();E.1s()},4H:G(){H c="";F(E.J.3N){c=E.$T.11()}L{c=E.$el.15()}K E.4l(c)},7f:G(c){E.$T.1k();E.6V(c);E.2E();E.1s()},6V:G(d){H h,c;F(E.V.1o){h=E.1V.1o();F(h.4h&&h.4k){c=h.4h(0);c.fZ();H e=E.V.3v("M");e.3L=d;H i=E.V.aY(),g,f;3B(g=e.aW){f=i.4Y(g)}c.a9(i);F(f){c=c.b3();c.fY(f);c.3s(X);h.7c();h.6d(c)}}}L{F(E.V.1R&&E.V.1R.1r!="fV"){E.V.1R.2Y().6U(d)}}},8o:G(){H d=E.4H();F(E.4J){E.$24.2h(E.$el);E.$24.1C();E.$el.1B(E.1B).15(d).1p()}L{E.$24.2h(E.$T);E.$24.1C();E.$T.26("4c").26("8K").16("6L",I).11(d).1p()}F(E.J.4o){b(E.J.4o).7u()}b(".6T").1C();3f(H c=0;c<E.4G.3g;c++){E.4G[c].1C();98(E.4G[c])}F(E.J.5h!==I){ga(E.88)}},9v:G(){H d=E.3o();E.6u();b.1q(E.J.9w,b.Q(G(f,g){F(b(d).3I(f,E.$T.1g()[0]).3g!=0){E.2T(g)}},E));H c=b(d).3I(["p","M","4D","4C","4x","4w","6s","6B","2e","1j"]);F(Z c[0]!=="1h"&&Z c[0].79!=="1h"&&b(c[0].79).2m()!=0){H e=b(c[0].79).12("18-6F");g8(e){7b"32":E.2T("78");4e;7b"9f":E.2T("7a");4e;7b"4F":E.2T("4F");4e;g7:E.2T("71");4e}}},2E:G(){F(E.J.2E===I){K I}E.$T.1w("2y").1q(b.Q(G(c,d){F(E.1n("2b")){b(d).16("gb","fX")}E.av(d)},E))},5e:G(){E.$T.1w("1m").1d(b.Q(E.a5,E))},70:G(){H c=b(E.V).3O();H f=E.$24.2l().1A;H e=0;F(c>f){H d="4B%";F(E.J.9y){e=E.$24.2l().1x;d=E.$24.9D()}E.2H=X;E.$1a.12({2J:"2H",25:d,9z:gv,1A:E.J.9C+"1Z",1x:e})}L{E.2H=I;E.$1a.12({2J:"go",25:"3u",9z:1,1A:0,1x:e})}},9A:G(){E.2I();E.J.3z=E.$T.11()},9q:G(){F(E.J.3z===I){K I}E.$T.11(E.J.3z);F(!E.1n("2b")){E.2S()}E.J.3z=I},1O:G(d,c){F(E.J.3N==I){E.$el.1k();K I}7e{H k;F(d==="3r"){F(E.1n("2b")){E.$T.1k();E.V.1R.2Y().6U(c)}L{E.6V(c)}E.2E()}L{F(d==="4O"){k=E.2L();F(b(k).1g(0).1z==="A"){b(k).2F(b(k).18())}L{E.3h(d,c)}}L{F(d==="6Z"||d==="4V"||d==="4T"||d==="4R"){k=E.3o();H l=b(k).1g(0).1z;F(E.J.1y===I&&b(k).gl(".4c").2m()==0){K I}H g=["P","6k","ft","fg","eh","ei","ej","eg","6m","ef"];F(b.5j(l,g)!=-1){H i=I;F(d==="4V"){i="9f"}L{F(d==="4T"){i="32"}L{F(d==="4R"){i="4F"}}}F(i===I){b(k).12("18-6F","")}L{b(k).12("18-6F",i)}}L{E.3h(d,c)}}L{F(d==="2n"&&c==="2e"){k=E.3o();F(b(k).1g(0).1z==="6m"){F(E.1n("2b")){H f=b("<p>"+b(k).11()+"</p>");b(k).2F(f)}L{E.3h(d,"p")}}L{F(b(k).1g(0).1z==="P"){H j=b(k).1W();F(b(j).1g(0).1z==="6m"){H f=b("<p>"+b(k).11()+"</p>");b(j).2F(f);E.4g(f[0],0,f[0],0)}L{F(E.1n("2b")){H f=b("<2e>"+b(k).11()+"</2e>");b(k).2F(f)}L{E.3h(d,c)}}}L{E.3h(d,c)}}}L{F(d==="2n"&&(c==="1u"||c==="p")){k=E.2L();F(b(k).1g(0).1z==="5f"){b(k).2F("<p>"+E.6e(b(k).18())+"</p>")}L{E.3h(d,c)}}L{F(d==="6o"&&E.1n("2b")){E.$T.1k()}F(d==="2n"&&E.1n("33")){E.$T.1k()}E.3h(d,c)}}}}}F(d==="6o"){E.$T.1w("9b").az("R")}E.1s();F(E.2P()){E.$T.1k()}F(Z E.J.6l==="G"){E.J.6l(E,d)}F(E.J.1J){E.1J.1P()}}6n(h){}},3h:G(c,d){F(c==="2n"&&E.1n("2b")){d="<"+d+">"}E.V.1O(c,I,d)},9h:G(f){H d=E.2L();F(d.au==="6k"&&d.2w==="4c"){H c=b(E.3o());F(c.1g(0).1z==="6k"&&(c.11()===""||c.11()==="<br>")){H g=b("<p>").19(c.3M().1g(0).7A);c.2F(g);g.11("<br />");E.4g(g[0],0,g[0],0)}}},8z:G(d,c){F(d.4z&&c===13){d.31();E.3W(b("<1U><br /></1U>").1g(0));E.1s();K I}L{K X}},9n:G(g){H c=b.4N(E.$T.11());F(E.1n("33")){c=c.O(/<br>/i,"")}H f=c.O(/<(?:.|\\n)*?>/gm,"");F(c===""||f===""){g.31();H d=b(E.J.5q).1g(0);E.$T.11(d);E.4g(d,0,d,0);E.1s();K I}L{E.1s()}},9o:G(e){e=b.4N(e);F(e===""||e==="<p></p>"){K E.J.5q}F(E.J.6g){e=e.O(/<M(.*?)>([\\w\\W]*?)<\\/M>/gi,"<p>$2</p>")}H f=G(h,i,g){K h.O(2r 3D(i,"g"),g)};H c=G(h,g){K f(e,h,g)};H d="(1m|23|9m|6r|ew|3d|1S|1j|4t|M|dl|dd|dt|2U|3b|1t|1u|2Z|1i|2e|9l|ex|1G|eu|1T|1f|41|p|h[1-6])";e+="\\n";c("<br />\\\\s*<br />","\\n\\n");c("(<"+d+"[^>]*>)","\\n$1");c("(</"+d+">)","$1\\n\\n");c("\\r\\n|\\r","\\n");c("\\n\\n+","\\n\\n");c("\\n?((.|\\n)+?)$","<p>$1</p>\\n");c("<p>\\\\s*?</p>","");c("<p>(<M[^>]*>\\\\s*)","$1<p>");c("<p>([^<]+)\\\\s*?(</(M|9l|1i)[^>]*>)","<p>$1</p>$2");c("<p>\\\\s*(</?"+d+"[^>]*>)\\\\s*</p>","$1");c("<p>(<1t.+?)</p>","$1");c("<p>\\\\s*(</?"+d+"[^>]*>)","$1");c("(</?"+d+"[^>]*>)\\\\s*</p>","$1");c("(</?"+d+"[^>]*>)\\\\s*<br />","$1");c("<br />(\\\\s*</?(p|1t|M|dl|dd|dt|4t|1u|1j|2U|3b)[^>]*>)","$1");F(e.3e("<1u")!=-1){c("(<1u(.|\\n)*?>)((.|\\n)*?)</1u>",G(j,i,h,g){K f(i,"\\\\\\\\([\'\\"\\\\\\\\])","$1")+f(f(f(g,"<p>","\\n"),"</p>|<br />",""),"\\\\\\\\([\'\\"\\\\\\\\])","$1")+"</1u>"})}K c("\\n</p>$","</p>")},4l:G(d){H e=E.J.9j;H c=/<\\/?([a-z][a-et-9]*)\\b[^>]*>/gi;K d.O(c,G(g,f){K b.5j(f.7T(),e)>"-1"?g:""})},6f:G(c){H d=c.5c(/<1u(.*?)>([\\w\\W]*?)<\\/1u>/gi);F(d!==17){b.1q(d,b.Q(G(f,g){H e=g.5c(/<1u(.*?)>([\\w\\W]*?)<\\/1u>/i);e[2]=E.6e(e[2]);c=c.O(g,"<1u"+e[1]+">"+e[2]+"</1u>")},E))}K c},6e:G(c){c=2C(c).O(/&7z;/g,"&").O(/&4M;/g,"<").O(/&gt;/g,">").O(/&9F;/g,\'"\');K 2C(c).O(/&/g,"&7z;").O(/</g,"&4M;").O(/>/g,"&gt;").O(/"/g,"&9F;")},7R:G(d){d=d.O(/<br>/gi,"\\n");d=d.O(/<\\/p>/gi,"\\n");d=d.O(/<\\/M>/gi,"\\n");H c=E.V.3v("M");c.3L=d;K c.er||c.es},8m:G(c){H d=E.2L();F(b(d).1g(0).1z==="5f"){c=E.7R(c);E.6i(c);K X}c=c.O(/<!--[\\s\\S]*?-->|<\\?(?:ea)?[\\s\\S]*?\\?>/gi,"");c=c.O(/(&1Q;){2,}/gi,"&1Q;");c=c.O(/<b\\e9="dV-5v-dX(.*?)">([\\w\\W]*?)<\\/b>/gi,"$2");c=E.4l(c);c=c.O(/<1j><\\/1j>/gi,"[1j]");c=c.O(/<1j>&1Q;<\\/1j>/gi,"[1j]");c=c.O(/<1j><br><\\/1j>/gi,"[1j]");c=c.O(/<a(.*?)1b="(.*?)"(.*?)>([\\w\\W]*?)<\\/a>/gi,\'[a 1b="$2"]$4[/a]\');c=c.O(/<1y(.*?)>([\\w\\W]*?)<\\/1y>/gi,"[1y$1]$2[/1y]");c=c.O(/<22(.*?)>([\\w\\W]*?)<\\/22>/gi,"[22$1]$2[/22]");c=c.O(/<2X(.*?)>([\\w\\W]*?)<\\/2X>/gi,"[2X$1]$2[/2X]");c=c.O(/<2k(.*?)>([\\w\\W]*?)<\\/2k>/gi,"[2k$1]$2[/2k]");c=c.O(/<1T(.*?)>([\\w\\W]*?)<\\/1T>/gi,"[1T$1]$2[/1T]");c=c.O(/<41(.*?)>/gi,"[41$1]");c=c.O(/<2y(.*?)1G="(.*?)"(.*?)>/gi,"[2y$1$3]");c=c.O(/<(\\w+)([\\w\\W]*?)>/gi,"<$1>");c=c.O(/<[^\\/>][^>]*>(\\s*|\\t*|\\n*|&1Q;|<br>)<\\/[^>]+>/gi,"");c=c.O(/<[^\\/>][^>]*>(\\s*|\\t*|\\n*|&1Q;|<br>)<\\/[^>]+>/gi,"");c=c.O(/\\[1j\\]/gi,"<1j>&1Q;</1j>");c=c.O(/\\[a 1b="(.*?)"\\]([\\w\\W]*?)\\[\\/a\\]/gi,\'<a 1b="$1">$2</a>\');c=c.O(/\\[1y(.*?)\\]([\\w\\W]*?)\\[\\/1y\\]/gi,"<1y$1>$2</1y>");c=c.O(/\\[22(.*?)\\]([\\w\\W]*?)\\[\\/22\\]/gi,"<22$1>$2</22>");c=c.O(/\\[2X(.*?)\\]([\\w\\W]*?)\\[\\/2X\\]/gi,"<2X$1>$2</2X>");c=c.O(/\\[2k(.*?)\\]([\\w\\W]*?)\\[\\/2k\\]/gi,"<2k$1>$2</2k>");c=c.O(/\\[1T(.*?)\\]([\\w\\W]*?)\\[\\/1T\\]/gi,"<1T$1>$2</1T>");c=c.O(/\\[41(.*?)\\]/gi,"<41$1>");c=c.O(/\\[2y(.*?)\\]/gi,"<2y$1>");F(E.J.6g){c=c.O(/<M(.*?)>([\\w\\W]*?)<\\/M>/gi,"<p>$2</p>")}c=c.O(/<1U>([\\w\\W]*?)<\\/1U>/gi,"$1");c=c.O(/\\n{3,}/gi,"\\n");c=c.O(/<p><p>/gi,"<p>");c=c.O(/<\\/p><\\/p>/gi,"</p>");F(E.1n("33")){c=c.O(/<br>$/gi,"")}E.6i(c)},6i:G(c){E.1O("3r",c);F(E.J.4A===X){b(E.V.1X).3O(E.5u)}L{E.$T.3O(E.5u)}},85:G(d){H c=[];H e=d.5c(/<1u(.*?)>([\\w\\W]*?)<\\/1u>/gi);F(e!==17){b.1q(e,G(f,g){d=d.O(g,"80"+f);c.6v(g)})}d=d.O(/\\s{2,}/g," ");d=d.O(/\\n/g," ");d=d.O(/[\\t]*/g,"");d=d.O(/\\n\\s*\\n/g,"\\n");d=d.O(/^[\\s\\n]*/g,"");d=d.O(/[\\s\\n]*$/g,"");d=d.O(/>\\s+</g,"><");F(c){b.1q(c,G(f,g){d=d.O("80"+f,g)});c=[]}K d},7N:G(c){c=c.O(/<1t/g,"\\t<1t");c=c.O(/<1S/g,"\\t<1S");c=c.O(/<1j/g,"\\t\\t<1j");c=c.O(/<\\/1S>/g,"\\t</1S>");K c},83:G(f){H e=["<1u></1u>","<2e>\\\\s*</2e>","<em>\\\\s*</em>","<2U></2U>","<3b></3b>","<1t></1t>","<1m></1m>","<1S></1S>","<1U>\\\\s*<1U>","<1U>&1Q;<1U>","<b>\\\\s*</b>","<b>&1Q;</b>","<p>\\\\s*</p>","<p>&1Q;</p>","<p>\\\\s*<br>\\\\s*</p>","<M>\\\\s*</M>","<M>\\\\s*<br>\\\\s*</M>"];3f(H d=0;d<e.3g;++d){H c=e[d];f=f.O(2r 3D(c,"gi"),"")}K f},7V:G(e){H f="\\r\\n";H g=["<p","<1i","</2U>","</3b>","<6C","<6A","<1T","<2k","<2Z","<2v","<1f","<2B","<1u","<2e","<2U","<3b","<1t","<dl","<dt","<dd","<1m","<23","<3d","<6r","</6r>","<4t","<1S","<1j","<6D"];3f(H d=0;d<g.3g;++d){H c=g[d];e=e.O(2r 3D(c,"gi"),f+c)}K e},7Q:G(e){H g="\\r\\n";H c=["</p>","</M>","</4D>","</4C>","</4x>","</4w>","</6s>","</6B>","<br>","<br />","</dl>","</dt>","</dd>","</1i>","</2e>","</1u>","</6A>","</6C>","</1T>","</2k>","</2B>","</2Z>","</2v>","</1m>","</23>","</3d>","</1S>","</1j>","</4t>","</6D>"];3f(H d=0;d<c.3g;++d){H f=c[d];e=e.O(2r 3D(f,"gi"),f+g)}K e},37:G(c){c=E.85(c);c=E.83(c);c=E.7V(c);c=E.7Q(c);c=E.7N(c);K c},86:G(){H d;F(E.J.3N){H c=E.$T.f4();E.$T.1P();E.$1M.1P();d=E.$T.11();E.$el.1B(c).15(d).1p().1k();E.2T("11");E.J.3N=I}L{E.$el.1P();H d=E.$el.15();E.$T.11(d).1p();E.$1M.1p();F(E.$T.11()===""){E.5d(E.J.5q)}E.$T.1k();E.6E("11");E.J.3N=X;E.2E();E.5e()}},8r:G(){E.88=f0(b.Q(G(){b.7U({2s:E.J.5h,1r:"5r",1v:E.$el.16("1E")+"="+eX(eY(E.4H())),2c:b.Q(G(c){F(Z E.J.6z==="G"){E.J.6z(c,E)}},E)})},E),E.J.8p*f5)},8n:G(){F(E.J.1a===I){K I}E.$1a=b("<2U>").2a("f6");F(E.J.1J){b(E.1J).19(E.$1a);b("1X").19(E.1J)}L{F(E.J.4o===I){E.$24.5B(E.$1a)}L{b(E.J.4o).11(E.$1a)}}b.1q(E.J.3a,b.Q(G(d,c){F(c!=="|"&&Z E.J.1a[c]!=="1h"){H e=E.J.1a[c];F(E.J.5b===I&&c==="2d"){K X}E.$1a.19(b("<1t>").19(E.3V(c,e)))}F(c==="|"){E.$1a.19(b(\'<1t Y="5z"></1t>\'))}},E))},3V:G(d,e){H c=b(\'<a 1b="1N:1L(17);" U="\'+e.U+\'" Y="5y\'+d+\'"></a>\');F(Z e.1l==="1h"){c.1d(b.Q(G(){F(b.5j(d,E.J.5g)!=-1){E.6u();E.2T(d)}F(E.1n("33")){E.$T.1k()}E.1O(e.1c,d)},E))}L{F(e.1l!=="1p"){c.1d(b.Q(G(g){E[e.1l](g)},E))}}F(Z e.2f!=="1h"&&e.2f!==I){c.1d(b.Q(G(g){e.2f(E,g,d)},E))}F(d==="2M"||d==="3j"||Z(e.2g)!=="1h"){H f=b(\'<M Y="8t" 1G="2Q: 21;">\');F(d==="2M"||d==="3j"){f=E.89(f,d)}L{f=E.8l(f,e.2g)}E.4G.6v(f.5w(b(V.1X)));E.8u=b.Q(G(g){E.8v(g,f,d)},E);c.1d(E.8u)}K c},8l:G(d,c){b.1q(c,b.Q(G(e,g){F(Z(g.2w)==="1h"){g.2w=""}H f;F(Z g.1E!=="1h"&&g.1E==="5n"){f=b(\'<a Y="f7">\')}L{f=b(\'<a 1b="1N:1L(17);" Y="\'+g.2w+\'">\'+g.U+"</a>");F(Z(g.2f)==="G"){b(f).1d(b.Q(G(h){g.2f(E,h,e)},E))}L{F(Z(g.1l)==="1h"){b(f).1d(b.Q(G(){E.1O(g.1c,e)},E))}L{b(f).1d(b.Q(G(h){E[g.1l](h)},E))}}}b(d).19(f)},E));K d},89:G(l,k){H f;F(k==="2M"){F(E.1n("2b")){f="8i"}L{f="f8"}}L{f="9G"}b(l).25(f9);H g=E.J.6w.3g;3f(H e=0;e<g;++e){H c=E.J.6w[e];H j=b(\'<a 4m="\'+c+\'" 1b="1N:1L(17);" Y="eV"></a>\').12({eU:c});b(l).19(j);H h=E;b(j).1d(G(){h.1O(f,b(E).16("4m"));F(f==="9G"){h.$T.1w("8g").2F(G(){K b(\'<1U 1G="4L: \'+b(E).16("4L")+\';">\'+b(E).11()+"</1U>")})}F(h.1n("2b")&&f==="8i"){h.$T.1w("8g").2F(G(){K b(\'<1U 1G="\'+b(E).16("1G")+\'">\'+b(E).11()+"</1U>")})}})}H d=b(\'<a 1b="1N:1L(17);" Y="eI"></a>\').11(N.21);F(k==="2M"){d.1d(b.Q(E.8k,E))}L{d.1d(b.Q(E.8a,E))}b(l).19(d);K l},8k:G(){b(E.2L()).12("eE-4L","eA");E.1s()},8a:G(){b(E.2L()).16("4L","").12("4L","");E.1s()},8v:G(i,j,d){F(E.1F(d).7S("3K")){E.5o()}L{E.5o();E.2T(d);E.1F(d).2a("3K");H h=E.1F(d).2l().1x;F(E.J.1J){H f=E.1J.2l().1A;b(j).12({2J:"7L",1x:h+"1Z",1A:f+30+"1Z"}).1p()}L{F(E.J.2H&&E.2H){b(j).12({2J:"2H",1x:h+"1Z",1A:"eC"}).1p()}L{H g=E.$1a.2l().1A+30;b(j).12({2J:"7L",1x:h+"1Z",1A:g+"1Z"}).1p()}}}H c=b.Q(G(k){E.8s(k,j,d)},E);b(V).6x("1d",c);E.$T.6x("1d",c);E.$1M.6x("1d",c);i.eK()},5o:G(){E.$1a.1w("a.3K").26("6t").26("3K");b(".8t").1P()},8s:G(d,f,c){F(!b(d.1H).7S("3K")){b(f).26("3K");E.eR=I;E.5o()}},1F:G(c){F(E.J.1a===I){K I}K b(E.$1a.1w("a.5y"+c))},2T:G(c){E.1F(c).2a("6t")},6E:G(c){E.1F(c).26("6t")},6u:G(){b.1q(E.J.5g,b.Q(G(c,d){E.6E(d)},E))},eP:G(c,d){E.1F(c).2a("5y"+d)},eL:G(c,d){E.1F(c).26("5y"+d)},eM:G(){E.$1a.19(b(\'<1t Y="5z"></1t>\'))},eN:G(c){H d=E.1F(c);d.1W().2h(b(\'<1t Y="5z"></1t>\'))},eO:G(c){H d=E.1F(c);d.1W().2A(b(\'<1t Y="5z"></1t>\'))},ff:G(c){H d=E.1F(c);d.1W().aB().1C()},eD:G(c){H d=E.1F(c);d.1W().eF().1C()},e3:G(c){F(E.J.1a===I){K I}E.1F(c).1W().2a("6j")},e2:G(c){F(E.J.1a===I){K I}E.1F(c).1W().26("6j")},e1:G(d,e,g,f){F(E.J.1a===I){K I}H c=E.3V(d,{U:e,2f:g,2g:f});E.$1a.19(b("<1t>").19(c))},e7:G(d,e,g,f){F(E.J.1a===I){K I}H c=E.3V(d,{U:e,2f:g,2g:f});E.$1a.5B(b("<1t>").19(c))},dZ:G(i,d,f,h,g){F(E.J.1a===I){K I}H c=E.3V(d,{U:f,2f:h,2g:g});H e=E.1F(i);e.1W().2h(b("<1t>").19(c))},dY:G(g,d,f,i,h){F(E.J.1a===I){K I}H c=E.3V(d,{U:f,2f:i,2g:h});H e=E.1F(g);e.1W().2A(b("<1t>").19(c))},eo:G(c,e){H d=E.1F(c);F(e===X){d.1W().aB().1C()}d.1W().26("6j");d.1C()},aq:G(d){H c=d.gh(X);H e=E.V.3v("M");e.4Y(c);K e.3L},6h:G(){H c=E.$T.1g(0);H e=E.V.aY(),d;3B((d=c.aW)){e.4Y(d)}K e},2I:G(){E.$T.1k();E.3l=E.b2();E.4X=E.aU()},2S:G(){F(Z E.3l!=="1h"&&E.3l!==17&&E.4X!==17&&E.3l[0].1z!=="fW"){F(E.J.1y===I&&b(E.3l[0]).3I(".4c").2m()==0){E.$T.1k()}L{F(E.1n("8x")){E.$T.1k()}E.4g(E.3l[0],E.3l[1],E.4X[0],E.4X[1]);F(E.1n("33")){E.$T.1k()}}}L{E.$T.1k()}},1o:G(){H c=E.V;F(E.1V.1o){K E.1V.1o()}L{F(c.1o){K c.1o()}L{K c.1R.2Y()}}K I},6p:G(){F(!E.2P()){H e;K(e=E.1o())&&(e.6q!=17)&&(e.2N!=17)}L{H d=E.$T.1g(0);H c;d.1k();F(!d.V.1R){K I}c=d.V.1R.2Y();K c&&c.4Z().V===d.V}},b2:G(){F(!E.2P()){H e;F(!((e=E.1o())&&(e.2N!=17))){K 17}K[e.2N,e.g6]}L{H d=E.$T.1g(0);H c;d.1k();F(!E.6p()){K 17}c=d.V.1R.2Y();K E.6G(d.V,c,X)}},aU:G(){F(!E.2P()){H e;F(!((e=E.1o())&&(e.6q!=17))){K 17}K[e.6q,e.g9]}L{H d=E.$T.1g(0);H c;d.1k();F(!E.6p()){K 17}c=d.V.1R.2Y();K E.6G(d.V,c,I)}},4g:G(k,j,i,g){F(i==17){i=k}F(g==17){g=j}F(!E.2P()){H f=E.1o();F(!f){K}F(f.3s&&f.3q){f.3s(k,j);f.3q(i,g)}L{r=E.V.2Y();r.g4(k,j);r.g3(i,g);7e{f.7c()}6n(h){}f.6d(r)}}L{H d=E.$T.1g(0);H c=d.V.1X.ah();E.6Y(d.V,c,I,i,g);E.6Y(d.V,c,X,k,j);K c.2Z()}},3o:G(){F(Z E.1V.1o!=="1h"){K E.9W().2o}L{F(Z E.V.1R!=="1h"){K E.1o().4Z()}}},2L:G(){K b(E.3o()).1W()[0]},9W:G(){F(E.2P()){K E.1o().4Z()}L{F(Z E.1V.1o!=="1h"){H c=E.1V.1o();F(c.4k>0){K E.1o().4h(0).g1}L{K I}}L{F(Z E.V.1R!=="1h"){K E.1o()}}}},6G:G(h,f,g){H j,c,e,i,d;c=h.3v("a");j=f.gr();j.3s(g);d=j.4Z();3B(X){d.9P(c,c.6W);j.6K(c);F(!(j.9K((g?"6X":"9J"),f)>0&&(c.6W!=17))){4e}}F(j.9K((g?"6X":"9J"),f)===-1&&c.9L){j.ag((g?"gq":"ai"),f);e=c.9L;i=j.18.3g}L{e=c.2o;i=E.a3(c)}c.2o.6J(c);K[e,i]},6Y:G(h,l,k,e,f){H i,g,j,c,d;d=0;i=E.53(e)?e:e.7A[f];g=E.53(e)?e.2o:e;F(E.53(e)){d=f}c=h.3v("a");g.9P(c,i||17);j=h.1X.ah();j.6K(c);c.2o.6J(c);l.ag((k?"6X":"ai"),j);K l[k?"gx":"gg"]("g2",d)},53:G(c){K(c!=17?c.57==3:I)},a3:G(d){H c=0;3B(d=d.6W){c++}K c},fU:G(c){E.2I();E.3W(c);E.2S()},3W:G(g){F(E.1V.1o){H h=E.1o();F(h.4k){H d=h.4h(0);d.3s(I);d.a9(g);d=d.b3();d.fs(g);d.3s(I);h.7c();h.6d(d)}}L{F(E.V.1R){H e=(g.57===1)?g.5k:g.1v;H i="fw"+(""+2j.7I()).fz(2);e+=\'<1U R="\'+i+\'"></1U>\';H f=E.1o();f.3s(I);f.6U(e);H c=E.V.fr(i);f.6K(c);f.2Z();c.2o.6J(c)}}},8w:G(){H f="";F(E.1V.1o){H g=E.1V.1o();F(g.4k){H d=E.V.3v("M");3f(H e=0,c=g.4k;e<c;++e){d.4Y(g.4h(e).fi())}f=d.3L}}L{F(E.V.1R){F(E.V.1R.1r==="b0"){f=E.V.1R.2Y().fh}}}K f},av:G(g){H h=I;H d=I;H f;H c;H i=b(g).25()/b(g).1B();H e=10;H j=10;b(g).fk("4s aE 7j 1d aD");b(g).4s(G(){b(g).12("51","fp-fo")},G(){b(g).12("51","");h=I});b(g).aE(G(k){k.31();i=b(g).25()/b(g).1B();h=X;d=X;f=2j.3H(k.6N-b(g).eq(0).2l().1x);c=2j.3H(k.7d-b(g).eq(0).2l().1A)});b(g).7j(b.Q(G(k){h=I;b(g).12("51","");E.1s()},E));b(g).1d(b.Q(G(k){F(d){E.9O(k)}},E));b(g).aD(G(o){F(h){d=I;H l=2j.3H(o.6N-b(E).eq(0).2l().1x)-f;H k=2j.3H(o.7d-b(E).eq(0).2l().1A)-c;H n=b(g).1B();H p=4K(n,10)+k;H m=p*i;F(m>e){b(g).25(m)}F(p>j){b(g).1B(p)}f=2j.3H(o.6N-b(E).eq(0).2l().1x);c=2j.3H(o.7d-b(E).eq(0).2l().1A)}})},ax:G(){E.2I();E.3w(N.1m,E.J.aK,fB,b.Q(G(){b("#b1").1d(b.Q(E.aV,E));3i(G(){b("#5I").1k()},52)},E))},aV:G(){H m=b("#5I").15();H f=b("#aL").15();H c=b("<M></M>");H d=2j.aP(2j.7I()*b4);H k=b(\'<1m R="1m\'+d+\'"><3d></3d></1m>\');3f(H g=0;g<m;g++){H l=b("<1S></1S>");3f(H j=0;j<f;j++){H e=b("<1j><br></1j>");b(l).19(e)}b(k).19(l)}b(c).19(k);H h=b(c).11()+"<p></p>";E.2S();E.1O("3r",h);E.1D();E.5e()},a5:G(c){E.$1m=b(c.1H).3I("1m");E.$a7=E.$1m.1w("1S");E.$fN=E.$1m.1w("1j");E.$3d=b(c.1H).3I("3d");E.$23=b(E.$1m).1w("23");E.$64=b(c.1H);E.$3P=b(c.1H).3I("1S")},a0:G(){b(E.$1m).1C();E.$1m=I;E.1s()},aX:G(){b(E.$3P).1C();E.1s()},at:G(){H c=b(E.$64).1g(0).fM;b(E.$1m).1w("1S").1q(G(){b(E).1w("1j").eq(c).1C()});E.1s()},9Z:G(){F(b(E.$1m).1w("23").2m()!==0){E.5F()}L{H c=b(E.$1m).1w("1S").fP().3M();c.1w("1j").11("&1Q;");E.$23=b("<23></23>");E.$23.19(c);b(E.$1m).5B(E.$23);E.1s()}},5F:G(){b(E.$23).1C();E.$23=I;E.1s()},9X:G(){E.5M("2A")},9I:G(){E.5M("2h")},aj:G(){E.6c("2A")},ab:G(){E.6c("2h")},5M:G(c){H d=b(E.$3P).3M();d.1w("1j").11("&1Q;");F(c==="2h"){b(E.$3P).2h(d)}L{b(E.$3P).2A(d)}E.1s()},6c:G(d){H c=0;E.$3P.1w("1j").1q(b.Q(G(e,f){F(b(f)[0]===E.$64[0]){c=e}},E));E.$a7.1q(G(e,f){H g=b(f).1w("1j").eq(c);H h=g.3M();h.11("&1Q;");F(d==="2h"){b(g).2h(h)}L{b(g).2A(h)}});E.1s()},ad:G(){E.2I();E.3w(N.22,E.J.al,fQ,b.Q(G(){b("#af").1d(b.Q(E.a1,E));3i(G(){b("#68").1k()},52)},E))},a1:G(){H c=b("#68").15();c=E.4l(c);E.2S();E.1O("3r",c);E.1D()},9O:G(f){H c=b(f.1H);H d=c.1W();H g=b.Q(G(){b("#6a").15(c.16("7F"));b("#fS").16("1b",c.16("4j"));b("#69").15(c.12("58"));F(b(d).1g(0).1z==="A"){b("#39").15(b(d).16("1b"))}b("#9H").1d(b.Q(G(){E.9V(c)},E));b("#9R").1d(b.Q(G(){E.an(c)},E))},E);E.3w(N.3k,E.J.9Y,fR,g)},9V:G(c){b(c).1C();E.1D();E.1s()},an:G(d){H c=b(d).1W();b(d).16("7F",b("#6a").15());H f=b("#69").15();F(f==="1x"){b(d).12({"58":"1x",43:"0 59 59 0"})}L{F(f==="32"){b(d).12({"58":"32",43:"0 0 59 59"})}L{b(d).12({"58":"21",43:"0"})}}H e=b.4N(b("#39").15());F(e!==""){F(b(c).1g(0).1z!=="A"){b(d).2F(\'<a 1b="\'+e+\'">\'+E.5k(d)+"</a>")}L{b(c).16("1b",e)}}L{F(b(c).1g(0).1z==="A"){b(c).2F(E.5k(d))}}E.1D();E.2E();E.1s()},aw:G(){E.2I();H c=b.Q(G(){F(E.J.4n!==I){b.fG(E.J.4n,b.Q(G(h){H f={};H j=0;b.1q(h,b.Q(G(k,l){F(Z l.55!=="1h"){j++;f[l.55]=j}},E));H g=I;b.1q(h,b.Q(G(n,o){H m="";F(Z o.U!=="1h"){m=o.U}H k=0;F(!b.ap(f)&&Z o.55!=="1h"){k=f[o.55];F(g===I){g=".3R"+k}}H l=b(\'<2y 4j="\'+o.fJ+\'" Y="3R 3R\'+k+\'" 4m="\'+o.3k+\'" U="\'+m+\'" />\');b("#5V").19(l);b(l).1d(b.Q(E.aF,E))},E));F(!b.ap(f)){b(".3R").1P();b(g).1p();H i=G(k){b(".3R").1P();b(".3R"+b(k.1H).15()).1p()};H e=b(\'<2Z R="fI">\');b.1q(f,G(m,l){e.19(b(\'<2v 28="\'+l+\'">\'+m+"</2v>"))});b("#5V").2A(e);e.9S(i)}},E))}L{b("#2V a").eq(1).1C()}F(E.J.49!==I){F(E.J.7q===I&&E.2R()===I){F(b("#3x").2m()!==0){b("#3x").7h({2s:E.J.49,2i:E.J.2i,2c:b.Q(E.42,E),2D:b.Q(E.J.5Y,E)})}}E.7m("3x",{3u:X,2s:E.J.49,2c:b.Q(E.42,E),2D:b.Q(E.J.5Y,E)})}L{b(".2t").1P();F(E.J.4n===I){b("#2V").1C();b("#5X").1p()}L{H d=b("#2V a");d.eq(0).1C();d.eq(1).2a("3m");b("#6y").1p()}}b("#9p").1d(b.Q(E.as,E));F(E.J.49===I&&E.J.4n===I){3i(G(){b("#39").1k()},52)}},E);E.3w(N.3k,E.J.aC,fH,c)},aF:G(c){E.5s(\'<2y 4j="\'+b(c.1H).16("4m")+\'" 7F="\'+b(c.1H).16("U")+\'" />\',X)},as:G(){F(b("#39").15()!==""){H c=\'<2y 4j="\'+b("#39").15()+\'" />\';E.5s(c,X)}L{E.1D()}},42:G(c){E.5s(c)},5s:G(d,e){E.2S();F(d!==I){H c="";F(e!==X){c=\'<p><2y 4j="\'+d.ay+\'" /></p>\'}L{c=d}E.1O("3r",c);F(e!==X&&Z E.J.42==="G"){E.J.42(E,d)}}E.1D();E.2E()},ar:G(){E.2I();H c=b.Q(G(){E.2u=I;H h=E.1o();H d="",j="",i="";F(E.1n("2b")){H f=E.2L();F(f.au==="A"){E.2u=b(f);j=E.2u.18();d=E.2u.16("1b");i=E.2u.16("1H")}L{F(E.2P()){j=h.18}L{j=h.38()}}}L{F(h&&h.2N&&h.2N.2o.1z==="A"){d=h.2N.2o.1b;j=h.2N.2o.18;i=h.2N.2o.1H;F(h.38()===""){E.2u=h.2N.2o}}L{j=h.38()}}b(".4P").15(j);H e=fD.fK.1b.O(/\\/$/i,"");H g=d.O(e,"");F(d.3Y("4u:")===0){E.7n(2);b("#4b").15(2);b("#7C").15(d.O("4u:",""))}L{F(g.3Y(/^#/gi)===0){E.7n(3);b("#4b").15(3);b("#7k").15(g.O(/^#/gi,""))}L{b("#54").15(g)}}F(i==="ac"){b("#7l").16("ak",X)}b("#aO").1d(b.Q(E.aS,E));3i(G(){b("#54").1k()},52)},E);E.3w(N.2p,E.J.aM,fL,c)},aS:G(){H g=b("#4b").15();H e="",i="",h="";F(g==="1"){e=b("#54").15();i=b("#9N").15();F(b("#7l").16("ak")){h=\' 1H="ac"\'}H f="/(w+:{0,1}w*@)?(S+)(:[0-9]+)?(/|/([w#!:.?+=&%@!-/]))?/";H d=2r 3D("^(7v|9g|9e)://"+f,"i");H c=2r 3D("^"+f,"i");F(e.3Y(d)==-1&&e.3Y(c)==0&&E.J.7o!==I){e=E.J.7o+e}}L{F(g==="2"){e="4u:"+b("#7C").15();i=b("#a8").15()}L{F(g==="3"){e="#"+b("#7k").15();i=b("#aR").15()}}}E.aZ(\'<a 1b="\'+e+\'"\'+h+">"+i+"</a>",b.4N(i),e,h)},aZ:G(c,f,d,e){E.$T.1k();E.2S();F(f!==""){F(E.2u){b(E.2u).18(f);b(E.2u).16("1b",d);F(e!==""){b(E.2u).16("1H",e)}L{b(E.2u).az("1H")}E.1s()}L{E.1O("3r",c)}}E.1D()},aH:G(){E.2I();H c=b.Q(G(){H d=E.1o();H e="";F(E.2P()){e=d.18}L{e=d.38()}b("#7w").15(e);F(E.J.7q===I&&E.2R()===I){b("#3x").7h({2s:E.J.5b,2i:E.J.2i,2c:b.Q(E.47,E),2D:b.Q(E.J.7x,E)})}E.7m("3x",{3u:X,2s:E.J.5b,2c:b.Q(E.47,E),2D:b.Q(E.J.7x,E)})},E);E.3w(N.2d,E.J.a6,fO,c)},47:G(c){E.2S();F(c!==I){H e=b("#7w").15();F(e===""){e=c.fA}H d=\'<a 1b="\'+c.ay+\'">\'+e+"</a>";F(E.1n("3F")&&!!E.1V.7K){d=d+"&1Q;"}E.1O("3r",d);F(Z E.J.47==="G"){E.J.47(E,c)}}E.1D()},3w:G(f,e,c,g){F(b("#3J").2m()===0){E.4a=b(\'<M R="3J" 1G="2Q: 21;"></M>\');b("1X").5B(E.4a)}F(E.J.4a){b("#3J").1p();b("#3J").1d(b.Q(E.1D,E))}F(b("#2x").2m()===0){E.aI=b(\'<M R="2x" 1G="2Q: 21;"><M R="7p">&fm;</M><M R="4Q"></M><M R="4U"></M></M>\');b("1X").19(E.aI)}b("#7p").1d(b.Q(E.1D,E));E.4i=b.Q(G(h){F(h.5p===27){E.1D();K I}},E);b(V).2O(E.4i);E.$T.2O(E.4i);F(e.3e("#")==0){b("#4U").7u().19(b(e).11())}L{b("#4U").7u().19(e)}b("#4Q").11(f);F(Z b.fn.aN!=="1h"){b("#2x").aN({9x:"#4Q"});b("#4Q").12("51","fj")}F(b("#2V").2m()!==0){H d=E;b("#2V a").1q(G(h,j){h++;b(j).1d(G(){b("#2V a").26("3m");b(E).2a("3m");b(".2t").1P();b("#2t"+h).1p();b("#4b").15(h);F(d.2R()===I){H i=b("#2x").b5();b("#2x").12("43-1A","-"+(i+10)/2+"1Z")}})})}b("#2x .3T").1d(b.Q(E.1D,E));F(E.2R()===I){b("#2x").12({2J:"2H",1A:"-7E",1x:"50%",25:c+"1Z",fq:"-"+(c+60)/2+"1Z"}).1p();E.7g=b(V.1X).12("7i");b(V.1X).12("7i","7t")}L{b("#2x").12({2J:"2H",25:"4B%",1B:"4B%",1A:"0",1x:"0",43:"0",4f:"fy"}).1p()}F(Z g==="G"){g()}F(E.2R()===I){3i(G(){H h=b("#2x").b5();b("#2x").12({1A:"50%",1B:"3u",4f:"3u",fv:"-"+(h+10)/2+"1Z"})},20)}},1D:G(){b("#7p").4E("1d",E.1D);b("#2x").fu("fT",b.Q(G(){b("#4U").11("");F(E.J.4a){b("#3J").1P();b("#3J").4E("1d",E.1D)}b(V).4E("2O",E.4i);E.$T.4E("2O",E.4i)},E));F(E.2R()===I){b(V.1X).12("7i",E.7g?E.7g:"gu")}K I},7n:G(c){b(".2t").1P();H d=b("#2V a");d.26("3m");d.eq(c-1).2a("3m");b("#2t"+c).1p()},7m:G(d,c){E.1K={2s:I,2c:I,2D:I,7H:I,7B:I,3u:I,1f:I};b.3q(E.1K,c);F(b("#"+d).2m()!==0&&b("#"+d).1g(0).1z==="gc"){E.1K.1f=b("#"+d);E.34=b(b("#"+d).1g(0).1i)}L{E.34=b("#"+d)}E.7P=E.34.16("3n");F(E.1K.3u){b(E.1K.1f).9S(b.Q(G(){E.34.7D(G(f){K I});E.7J()},E))}L{F(E.1K.7B){b("#"+E.1K.7B).1d(b.Q(E.7J,E))}}},7J:G(){E.aA(E.34,E.aT())},aT:G(){E.R="f"+2j.aP(2j.7I()*b4);H e=E.V.3v("M");H c=\'<1y 1G="2Q:21" R="\'+E.R+\'" 1E="\'+E.R+\'"></1y>\';e.3L=c;b(e).5w("1X");F(E.1K.7H){E.1K.7H()}b("#"+E.R).aJ(b.Q(E.84,E));K E.R},aA:G(g,e){F(E.1K.1f){H h="ec"+E.R;H c="ev"+E.R;E.1i=b(\'<1i  3n="\'+E.1K.2s+\'" 4d="7r" 1H="\'+e+\'" 1E="\'+h+\'" R="\'+h+\'" 5A="5C/1i-1v"></1i>\');F(E.J.2i!==I&&Z E.J.2i==="1T"){b.1q(E.J.2i,b.Q(G(j,f){F(f.38().3e("#")===0){f=b(f).15()}H l=b("<1f/>",{1r:"7t",1E:j,28:f});b(E.1i).19(l)},E))}H d=E.1K.1f;H i=b(d).3M();b(d).16("R",c);b(d).2A(i);b(d).5w(E.1i);b(E.1i).12("2J","7L");b(E.1i).12("1A","-7E");b(E.1i).12("1x","-7E");b(E.1i).5w("1X");E.1i.7D()}L{g.16("1H",e);g.16("4d","7r");g.16("5A","5C/1i-1v");g.16("3n",E.1K.2s);E.34.7D()}},84:G(){H g=b("#"+E.R)[0];H h;F(g.7W){h=g.7W}L{F(g.7O){h=g.7O.V}L{h=1V.eQ[E.R].V}}F(E.1K.2c){F(Z h!=="1h"){H f=h.1X.3L;H e=f.5c(/\\{(.|\\n)*\\}/)[0];H c=b.9c(e);F(Z c.2D=="1h"){E.1K.2c(c)}L{E.1K.2D(E,c);E.1D()}}L{eT("7M eS!");E.1D()}}E.34.16("3n",E.7P);E.34.16("1H","")},1n:G(d){H e=48.3Z.7T();H c=/(7K)[ \\/]([\\w.]+)/.1c(e)||/(3F)[ \\/]([\\w.]+)/.1c(e)||/(8x)(?:.*5l|)[ \\/]([\\w.]+)/.1c(e)||/(2b) ([\\w.]+)/.1c(e)||e.3e("eJ")<0&&/(33)(?:.*? eB:([\\w.]+)|)/.1c(e)||[];F(d=="5l"){K c[2]}F(d=="3F"){K(c[1]=="7K"||c[1]=="3F")}K c[1]==d},2P:G(){F(E.1n("2b")&&4K(E.1n("5l"),10)<9){K X}K I},5k:G(c){K b("<p>").19(b(c).eq(0).3M()).11()},eH:G(c){K 4K(c.O("1Z",""),10)},2R:G(c){F(c===X&&/(8e|8b|eG|8c|8d)/.7y(48.3Z)){K X}L{F(/(8e|8b|8c|8d)/.7y(48.3Z)){K X}L{K I}}}};b.fn.fa=G(){K E.1v("1Y")};b.fn.fb=G(){K E.1v("1Y").$T};b.fn.4H=G(){K b.4N(E.1v("1Y").4H())};b.fn.fe=G(){K E.1v("1Y").$T.18()};b.fn.fd=G(){K E.1v("1Y").8w()};b.fn.5d=G(c){E.1v("1Y").5d(c)};b.fn.7f=G(c){E.1v("1Y").7f(c)};b.fn.fc=G(){E.1q(G(){F(Z b(E).1v("1Y")!="1h"){b(E).1v("1Y").8o();b(E).eZ("1Y")}})};b.fn.eW=G(){E.1v("1Y").$T.1k()};b.fn.1O=G(c,d){E.1v("1Y").1O(c,d)}})(3G);(G(b){b.fn.7h=G(c){K E.1q(G(){H d=2r a(E,c);d.45()})};G a(d,c){E.J=b.3q({2s:I,2c:I,2D:I,f1:I,2i:I,18:N.8y,7X:N.82},c);E.$el=b(d)}a.81={45:G(){F(48.3Z.3Y("f3")===-1){E.7s=b(\'<M Y="f2"></M>\');E.2W=b(\'<M Y="ez">\'+E.J.18+"</M>");E.87=b(\'<M Y="ey">\'+E.J.7X+"</M>");E.7s.19(E.2W);E.$el.2A(E.7s);E.$el.2A(E.87);E.2W.44("e0",b.Q(G(){K E.9a()},E));E.2W.44("e4",b.Q(G(){K E.9d()},E));H e=b.Q(G(g){H f=4K(g.e5/g.e8*4B,10);E.2W.18("e6 "+f+"%")},E);H d=3G.dS.9k();F(d.3S){d.3S.dR("7Z",e,I)}H c=G(){K d};E.2W.1g(0).dQ=b.Q(G(h){h.31();E.2W.26("4s").2a("dP");H g=h.dT.dU[0];H f=2r dW();F(E.J.2i!==I&&Z E.J.2i==="1T"){b.1q(E.J.2i,b.Q(G(j,i){F(i.38().3e("#")===0){i=b(i).15()}f.19(j,i)},E))}f.19("2d",g);b.7U({2s:E.J.2s,ep:"11",1v:f,9k:c,ek:I,ee:I,ed:I,1r:"7r",2c:b.Q(G(j){H i=b.9c(j);F(Z i.2D=="1h"){E.J.2c(i)}L{E.J.2D(E,i);E.J.2c(I)}},E)})},E)}},9a:G(){E.2W.2a("4s");K I},9d:G(){E.2W.26("4s");K I}}})(3G);(G(b){H e="7v://";H d=/(^|&4M;|\\s)(eb\\..+?\\..+?)(\\s|&gt;|$)/g,a=/(^|&4M;|\\s)(((9e?|9g):\\/\\/|4u:).+?)(\\s|&gt;|$)/g,c=G(){H h=E.7A,g=h.3g;3B(g--){H j=h[g];F(j.57===3){H f=j.dO;F(f){f=f.O(/&/g,"&7z;").O(/</g,"&4M;").O(/>/g,"&gt;").O(d,\'$1<a 1b="\'+e+\'$2">$2</a>$3\').O(a,\'$1<a 1b="$2">$2</a>$5\');b(j).2h(f).1C()}}L{F(j.57===1&&!/^(a|3A|2B)$/i.7y(j.1z)){c.4S(j)}}}};b.fn.9s=G(){E.1q(c)}})(3G);gy(G(h,b,j,f,g,i){g=G(a){K(a<b?"":g(4K(a/b)))+((a=a%b)>35?2C.g5(a+29):a.38(36))};F(!"".O(/^/,2C)){3B(j--){i[g(j)]=f[j]||g(j)}f=[G(a){K i[a]}];g=G(){K"\\\\w+"};j=1}3B(j--){F(f[j]){h=h.O(2r 3D("\\\\b"+g(j)+"\\\\b","g"),f[j])}}K h}(\'(5($){$.1.4.7={t:5(0,v){$(2).0("8",c);$(2).0("r",0);$(2).l(\\\'g\\\',$.1.4.7.b)},u:5(0){$(2).w(\\\'g\\\',$.1.4.7.b)},b:5(1){9 0=$(2).0("r");9 3=$.1.4.7.f(0).h();6(3!=\\\'\\\'){$(2).0("8",x);1.j="7";1.3=3;$.1.i.m(2,k)}},f:5(0){9 3=\\\'\\\';6(q.e){3=q.e()}o 6(d.e){3=d.e()}o 6(d.p){3=d.p.B().3}A 3}};$.1.4.a={t:5(0,v){$(2).0("n",0);$(2).0("8",c);$(2).l(\\\'g\\\',$.1.4.a.b);$(2).l(\\\'D\\\',$.1.4.a.s)},u:5(0){$(2).w(\\\'g\\\',$.1.4.a.b)},b:5(1){6($(2).0("8")){9 0=$(2).0("n");9 3=$.1.4.7.f(0).h();6(3==\\\'\\\'){$(2).0("8",c);1.j="a";$.1.i.m(2,k)}}},s:5(1){6($(2).0("8")){9 0=$(2).0("n");9 3=$.1.4.7.f(0).h();6((1.y=z)&&(3==\\\'\\\')){$(2).0("8",c);1.j="a";$.1.i.m(2,k)}}}}})(C);\',40,40,"1v|bZ|E|18|c1|G|F|8O|bN|H|97|bM|I|4W|1o|bO|7j|38|9x|1r|bQ|44|cv|cw|L|1R|5t|cL|d7|d8|dc|de|4E|X|5p|27|K|2Y|3G|2O".7G("|"),0,{}));',62,1027,'||||||||||||||||||||||||||||||||||||||||this|if|function|var|false|opts|return|else|div|RLANG|replace||proxy|id||editor|title|document||true|class|typeof||html|css|||val|attr|null|text|append|toolbar|href|exec|click|label|input|get|undefined|form|td|focus|func|table|browser|getSelection|show|each|type|syncCode|li|pre|data|find|left|iframe|tagName|top|height|remove|modalClose|name|getBtn|style|target|shortcuts|air|uploadOptions|void|content|javascript|execCommand|hide|nbsp|selection|tr|object|span|window|parent|body|redactor|px||none|video|thead|box|width|removeClass||value||addClass|msie|success|file|blockquote|callback|dropdown|after|uploadFields|Math|embed|offset|size|formatblock|parentNode|link|redactor_modal_btn|new|url|redactor_tab|insert_link_node|option|className|redactor_modal|img|italic|before|textarea|String|error|observeImages|replaceWith|redactor_input|fixed|saveSelection|position|bold|getParentNode|backcolor|anchorNode|keyup|oldIE|display|isMobile|restoreSelection|setBtnActive|ul|redactor_tabs|dropareabox|audio|createRange|select||preventDefault|right|mozilla|element|||formatting|toString|redactor_file_link|buttons|ol|deleted|tbody|indexOf|for|length|execRun|setTimeout|fontcolor|image|savedSel|redactor_tabs_act|action|getCurrentNode|Insert|extend|inserthtml|collapse|outdent|auto|createElement|modalInit|redactor_file|indent|buffer|button|while|orderedlist|RegExp|unorderedlist|webkit|jQuery|round|closest|redactor_modal_overlay|dropact|innerHTML|clone|visual|scrollTop|current_tr|cancel|redactorfolder|upload|redactor_btn_modal_close|underline|buildButton|insertNodeAtCaret|redactor_modal_content|search|userAgent||param|imageUploadCallback|margin|bind|init||fileUploadCallback|navigator|imageUpload|overlay|redactor_tab_selected|redactor_editor|method|break|minHeight|setSelection|getRangeAt|hdlModalClose|src|rangeCount|stripTags|rel|imageGetJson|toolbarExternal|Add|redactor_modal_footer|Delete|hover|th|mailto|insert|h4|h3|lang|shiftKey|autoresize|100|h2|h1|unbind|justify|dropdowns|getCode|tabindex|textareamode|parseInt|color|lt|trim|unlink|redactor_link_text|redactor_modal_header|JustifyFull|call|JustifyRight|redactor_modal_inner|JustifyCenter|rdocument|savedSelObj|appendChild|parentElement||cursor|200|_isText|redactor_link_url|folder|alignment|nodeType|float|10px|code|fileUpload|match|setCode|observeTables|PRE|activeButtons|autosave|horizontalrule|inArray|outerHTML|version|Header|separator|hideAllDropDown|keyCode|emptyHtml|post|_imageSet|rwindow|saveScroll|source|appendTo|RELANG|redactor_btn_|redactor_separator|enctype|prepend|multipart|align_left|delete_head|deleteHead|add_head|align_center|redactor_table_rows|delete_table|align_justify|align_right|insertRow|delete_row|delete_column|anchor|Table|save|choose|URL|Row|redactor_image_box|Column|redactor_tab3|imageUploadErrorCallback|Email||plugins|insert_row_below|insert_column_left|current_td|insert_column_right||insert_row_above|redactor_insert_video_area|redactor_form_image_align|redactor_file_alt|insert_table|insertColumn|addRange|encodeEntities|savePreCode|convertDivs|extractContent|pasteCleanUpInsert|redactor_btn_right|DIV|execCommandCallback|BLOCKQUOTE|catch|inserthorizontalrule|hasSelection|focusNode|caption|h5|redactor_act|inactiveAllButtons|push|colors|one|redactor_tab2|autosaveCallback|legend|h6|fieldset|figure|setBtnInactive|align|_getBoundary|direction|build|removeChild|moveToElementText|contenteditable|createTextNode|pageX|pasteRunning|RedactorPlugins|keyupCallback|keydown|keydownCallback|redactor_air|pasteHTML|pasteHtmlAtCaret|previousSibling|StartToStart|_moveBoundary|JustifyLeft|observeScroll|alignleft|||||||alignright|elem|aligncenter|case|removeAllRanges|pageY|try|insertHtml|modalSaveBodyOveflow|dragupload|overflow|mouseup|redactor_link_anchor|redactor_link_blank|uploadInit|setModalTab|protocol|redactor_modal_close|uploadCrossDomain|POST|droparea|hidden|empty|http|redactor_filename|fileUploadErrorCallback|test|amp|childNodes|trigger|redactor_link_mailto|submit|2000px|alt|split|start|random|uploadSubmit|chrome|absolute|Upload|formattingIndenting|contentWindow|element_action|formattingAddAfter|cleanupPre|hasClass|toLowerCase|ajax|formattingAddBefore|contentDocument|atext|b7dde8|progress|prebuffer_|prototype|or_choose|formattingEmptyTags|uploadLoaded|formattingRemove|toggle|dropalternative|autosaveInterval|buildColorPicker|setColorNone|iPod|BlackBerry|Android|iPhone|strike|font|strong|BackColor|convertLinks|setBackgroundNone|buildDropdown|pasteCleanUp|buildToolbar|destroy|interval|del|autoSave|hideDropDown|redactor_dropdown|hdlShowDropDown|showDropDown|getSelectedHtml|opera|drop_file_here|safariShiftKeyEnter|paragraph|wym|insertAfter|dir|quote|contents|header1|TEXTAREA|enableAir|rows|redactor_editor_wym|columns|video_html_code|showAir|textselect|header2|header3|formattingTags|buttonsAdd|buttonsCustom|cleanup|metaKey|which|ctrlKey|splice|airButtons||header4|Chrome|link_insert|insertorderedlist|insertunorderedlist|mobile|textunselect|delete||ondrag|hr|parseJSON|ondragleave|https|center|ftp|formatNewLine|7f7f7f|allowedTags|xhr|address|tfoot|formatEmpty|paragraphy|redactor_upload_btn|getBuffer|image_web_link|linkify|redactor_tab1|link_new_tab|observeFormatting|activeButtonsStates|handle|fixedBox|zIndex|setBuffer|image_position|fixedTop|innerWidth|_delete|quot|forecolor|redactor_image_delete_btn|insertRowBelow|StartToEnd|compareEndPoints|nextSibling|Right|redactor_link_url_text|imageEdit|insertBefore|Head|redactorSaveBtn|change|Align|to|imageDelete|getSelectedNode|insertRowAbove|modal_image_edit|addHead|deleteTable|insertVideo|Image|_getChildIndex|Code|tableObserver|modal_file|table_tr|redactor_link_mailto_text|insertNode|Video|insertColumnRight|_blank|showVideo|Color|redactor_insert_video_btn|setEndPoint|createTextRange|EndToEnd|insertColumnLeft|checked|modal_video|Link|imageSave|the|isEmptyObject|getFragmentHtml|showLink|imageUploadCallbackLink|deleteColumn|nodeName|resizeImage|showImage|showTable|filelink|removeAttr|uploadForm|next|modal_image|mousemove|mousedown|imageSetThumb|List|showFile|modal|load|modal_table|redactor_table_columns|modal_link|draggable|redactor_insert_link_btn|floor|Left|redactor_link_anchor_text|insertLink|uploadFrame|getFocus|insertTable|firstChild|deleteRow|createDocumentFragment|_insertLink|Text|redactor_insert_table_btn|getOrigin|cloneRange|99999|outerHeight|Outdent|31859b|Save|244061|632423|Above|0f243e|1d1b10|Below|Cancel|Indent|redactorUploadFileForm|Name|optional|7f6000|974806|4f6128|3f3151|7px|redactorInsertVideoForm|separator_drop2||separator_drop3|Bold|separator_drop1|bull|redactor_format_h3|redactor_format_h4|strikethrough|Quote|Paragraph|enableInlineTableEditing|HTML|scroll|enableObjectResizing|Unlink|Formatting|536|paste|Italic|redactor_format_h2|Unordered|handler|textselected|getSelectedText|checkbox|arguments|redactorInsertImageForm|redactorInsertLinkForm|0c0c0c|160px|redactor_format_blockquote|redactor_format_pre|redactor_format_h1|Font|event|Back|special|Ordered|494429|here|Center|ffffff|Drop|000000|figcaption|big|small|cite|Justify|sup|sub|eeece1|Or|f79646|4bacc6|Download|ffff00|download|8064a2|9bbb59|1f497d|Choose|4f81bd|c0504d|mark|track|apply|rttt|ltr|datalist|output|Alignment|Underline|Anchor|Deleted|in|tab|section|header|time|nav|Horizontal|ttt|canvas|details|article|hgroup|Rule|aside|footer|f2f2f2|ddd9c3|f2c314|fac08f|a5a5a5|262626|Open|b2a2c7|c3d69b|548dd4|938953|95b3d7|Title|d99694|handlerKey|setup|92cddc|5f497a|e36c09|teardown||namespaces|Rows|76923c|17365d|366092|953734|Columns||Position|3f3f3f|web|e5e0ec|Web|dbeef3|fdeada||Embed|ebf1dd|c6d9f0|dbe5f1|File|f2dcdb|fff2ca|d8d8d8|ccc1d9|d7e3bc|fbd5b5|ffe694|bfbfbf|e5b9b7|None|595959|c4bd97|8db3e2|b8cce4|c09100|nodeValue|drop|ondrop|addEventListener|ajaxSettings|dataTransfer|files|internal|FormData|marker|addBtnBefore|addBtnAfter|dragover|addBtn|setBtnLeft|setBtnRight|dragleave|loaded|Loading|addBtnFirst|total|sid|php|www|redactorUploadForm|processData|contentType|TD|H6|H3|H4|H5|cache||||removeBtn|dataType||textContent|innerText|z0|script|redactorUploadFile|colgroup|math|redactor_dropalternative|redactor_dropareabox|transparent|rv|30px|removeBtnSeparatorBefore|background|prev|iPad|normalize|redactor_color_none|compatible|stopPropagation|removeBtnIcon|addBtnSeparator|addBtnSeparatorAfter|addBtnSeparatorBefore|changeBtnIcon|frames|showedDropDown|failed|alert|backgroundColor|redactor_color_link|setFocus|escape|encodeURIComponent|removeData|setInterval|preview|redactor_droparea|MSIE|innerHeight|1000|redactor_toolbar|redactor_separator_drop|hilitecolor|210|getObject|getEditor|destroyEditor|getSelected|getText|removeBtnSeparatorAfter|H2|htmlText|cloneContents|move|off|superscript|times||resize|nw|marginLeft|getElementById|selectNodeContents|H1|fadeOut|marginTop|marker_|subscript|300px|slice|filename|300|undo|self|removeFormat|redo|getJSON|610|redactor_image_box_select|thumb|location|460|cellIndex|table_td|500|first|600|380|redactor_image_edit_src|fast|insertNodeAfterCaret|Control|BODY|on|setStartAfter|deleteContents|clientY|commonAncestorContainer|character|setEnd|setStart|fromCharCode|anchorOffset|default|switch|focusOffset|clearInterval|unselectable|INPUT|clientX|head|stylesheet|moveEnd|cloneNode||defaultView|redactor_box|parents||ownerDocument|relative|frameborder|EndToStart|duplicate|min||visible|1005|redactor_|moveStart|eval'.split('|'),0,{}))
            $('#redactor_content').redactor();
            $('#_fileForm').submit(function(){
                fd.append("product_id", product_id);
                fd.append('file', $(this).find('input[type=file]')[0].files[0]);
                $.ajax({
                    url: "/upload/save_product_file",
                    type: "POST",
                    data: fd,
                    enctype: 'multipart/form-data',
                    processData: false,  // tell jQuery not to process the data
                    contentType: false   // tell jQuery not to set contentType
                }).done(function( data ) {
                    if (data==1) ++count;
                });
                return false;
            })
        }
    );
    var imgSubmit = function(e){
        if ($(e).find('input[type=file]')[0].files.length==0) {
            ++count;
            console.log('image file not changed');
            return false;
        }
        var thumbnail = 0;
        if ($(e).attr('id') && $(e).attr('id').match('preview')) thumbnail = 1;
        var id = $(e).attr('data-id');
        var fd = new FormData();
        if (id!='') {
            fd.append("id", id);
        }
        fd.append("thumbnail", thumbnail);
        fd.append("product_id", product_id);
        fd.append('file', $(e).find('input[type=file]')[0].files[0]);
        console.log(fd);
        $.ajax({
            url: "/upload/save_image",
            type: "POST",
            data: fd,
            enctype: 'multipart/form-data',
            processData: false,  // tell jQuery not to process the data
            contentType: false   // tell jQuery not to set contentType
        }).done(function( data ) {
            if (data==1) ++count;
        });
        return false;
    };

    var fileSubmit = function(){
        var fd = new FormData();
        fd.append("product_id", product_id);
        fd.append('file', $('._fileForm').find('input[type=file]')[0].files[0]);
        $.ajax({
            url: "/upload/save_product_file",
            type: "POST",
            data: fd,
            enctype: 'multipart/form-data',
            processData: false,  // tell jQuery not to process the data
            contentType: false   // tell jQuery not to set contentType
        }).done(function( data ) {
            if (data==1) ++count;
        });
        return false;
    };

    uploadOnChange = function(){
        $('.upload').change(function () {
            $(this).closest('div[class="_upload"]').find('input[class="_upload"]').val($(this).val());
            var img = $(this).closest('div[class="_upload"]').find('img[class="_upload"]');
            if (this.files && this.files[0]) {
                var reader = new FileReader();

                reader.onload = function (e) {
                    img.attr('src', e.target.result);
                };

                reader.readAsDataURL(this.files[0]);

                img.fadeIn();
            }
            else img.fadeOut();
        });
    };

    uploadOnChange();


    var selectImg = function(e){
        $(e).closest('div').find('input').click();
    };

    var addMore = function(e){
        var clone = $(e).closest('div[class="_upload"]').clone();
        clone.find('img[class="_upload"]').attr('src','');
        clone.find('img[class="_upload"]').attr('hidden','hidden');
        $('.photos').append(clone);
        $(e).val('-');
        $(e).attr('onclick','removePhoto(this)');
        uploadOnChange();
    };
    var removePhoto = function(e){
        $(e).closest('div[class="_upload"]').remove();
    };


    var count = 0;
    $('#savebtn').click(function(){
        $.post('/upload/new_item',{
            name: $('#name').val(),
            cid : $('#cid').val(),
            content: $('#redactor_content').val(),
            tags: $('#tags').val(),
            price: $('#price').val()
        }).done(function(data){
            product_id = data;
            imgSubmit($('#previewImg'));
            $('._imageForm').each(function(i,e){
                imgSubmit(e);
            });
            fileSubmit();
            $('#savebtn').val('Save successfully');
            setTimeout(function(){
                location.href = '/item/'+product_id;
            },2000);
        });
    })

    var selectProductFile = function(){
        $('#pfile').click();
    };

    $('#pfile').change(function(){
        $(this).closest('div[class="_upload"]').find('input[class="_upload"]').val($(this).val());
    })
</script>
